Skip to content
  • 0 Votes
    3 Posts
    6k Views
    mrjjM

    @Pataruutu

    Hi the video you link is QML :)
    So its its the reason it looks differently.

    The one you call ugly is QWidgets and it uses the default look of the platform.

    It seems you can use QML with pyt
    http://pyqt.sourceforge.net/Docs/PyQt5/qml.html

  • 0 Votes
    4 Posts
    4k Views
    jsulmJ

    @John_A._Myer yes

  • 0 Votes
    3 Posts
    3k Views
    SGaistS

    Hi and welcome to devnet,

    I'd recommend posting this question to the Qt Creator mailing list. You'll find there Qt Creator's developers/maintainers. This forum is more user oriented.

  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • 0 Votes
    2 Posts
    1k Views
    B

    i have a same problem, and have not solve yet

  • 0 Votes
    29 Posts
    9k Views
    S

    @jsulm Thanks it worked..

  • 2 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    7 Posts
    2k Views
    mrjjM

    @Matzomatzomatzo said:

    Hi

    if setAlignment sets the alignment for a paragraph of text
    (see doc)

    When you do
    ui->QtexteditObj->setText

    I think it replaces the paragraph with a new one since u replace all text
    and the default alignment is left for that new paragraph

    Just guessing. Did not test it :)

  • 0 Votes
    20 Posts
    10k Views
    crisosphinxC

    The issue is officially solved.

    Below are a list of issues I encountered along the way and the full resolution I came to after long hours of debugging...

    Issues:

    Windows 10 Anniversary Update killed the environment variables. It may be important to reconfigure / link / delete the current entries / paths for compilation. Link for where to find your Environment Variables.

    Windows 10 Anniversary Update also created a hang up in some drivers that led to stalling of the code execution for QT Creator and Designer. Be aware of some conflicting drivers or programs (even if they are unrelated to QT / do not use QML or GUI provided by QT).

    If you are an artist or utilize Wacom Tablets and their software for navigating your desktop (as opposed to a mouse). Please be aware that having more than one Tablet software installed, regardless of it running or being disabled, will cause conflicts.

    In addition to the above issue, be aware that the Windows 10 Anniversary Update also created a glitch (at least in my installation) that caused the Tablet software to stall on boot of my computer. By failing, it caused a memory leak issue that resulted in QT not functioning. So, if you are experiencing issues similar to mine, uninstall all Tablet software and reinstall the one you use the most, be it Cintiq, Bamboo, Intuos, etc.

    Fix:

    I rolled back my Win10 installation. It still had hang ups. I redirected the Environment Variables to the correct locations and uninstalled QT (all forms of it), uninstalled my Tablet softwares, re-installed my Win10 Anniversary Update, installed only my Cintiq software, installed QT, double-checked the environment variables, fixed my boot manager to only include processes I knew I needed and rebooted.

    It appears to be working fine. A few of my compilers went missing along the way and so did a few brain cells. ;)

    I had more than a few programs not working, so it took about a weeks worth of effort to figure out which programs were causing problems with other programs. It originally looked like a Windows Defender problem, then the Tablets, then the Realtek drivers, then Visual Studio, then the Tablets again.

    Sorry for the lengthy post, but hopefully it will assist some people in the near future. Most of my issues stemmed from the Update and I expect that there will be more people with problems.

  • 0 Votes
    6 Posts
    2k Views
    SGaistS

    You're welcome !

    Since you have now material to go on, please mark the thread as solved using the "Topic Tools" button so that other forum users may know an answer has been found :)

  • 0 Votes
    4 Posts
    2k Views
    T

    Ok, thanks for the information. It's a little sad because I like how a lot of the tedious code is hidden away by using Qt Designer. Still better than writing all of it manually, though.

  • 0 Votes
    4 Posts
    1k Views
    SGaistS

    Depending on you Pi distribution, the Qt Creator version might be a bit older but that should prevent you from working with it with a more recent version of Qt.

  • 0 Votes
    2 Posts
    2k Views
    mrjjM

    hi and welcome
    If you right click mainwindow there is css editor and u can set
    stylesheet there. This then applies to all child's of window.

    As far as I know there is no way to have Designer do on all forms.

  • 0 Votes
    4 Posts
    3k Views
    W

    Thanks, I'll wait for 5.6 then.

  • 1 Votes
    3 Posts
    19k Views
    M

    Doh! So stupid of me! That solved everything!

    Thanks a lot

    EDIT: How do I mark the question as 'Solved'?
    sorry for the stupidity

  • QT Designer plugin

    Solved General and Desktop
    3
    0 Votes
    3 Posts
    1k Views
    G

    Hi
    I have solved the issue
    In the doXml method you need to add a customWidgets section to the xml

  • 0 Votes
    12 Posts
    13k Views
    mrjjM

    @M.K.
    just a note so im sure you know.

    when you say

    QTextBrowser {
    ....
    }

    it its for all QTextBrowser instances of the parent where you set stylesheet.
    So if on the mainwindow, it will be all.

  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    1 Posts
    566 Views
    No one has replied
  • 0 Votes
    4 Posts
    4k Views
    safnaS

    @Tomasz-Ciesla said in is there an easy way to view GUI created in Qt Designer - pyqt via web browser?:

    Recently I've developed a control application on BeagleBone (similar to RaspberryPi). I'm controlling it remotely using TCP slot and client application with GUI wrote in Qt designer - pyqt.
    Now I want to do a step forward and replace the TCP slot with web app, so the hardware connected to the BeagleBone will be controlled via browser. It should be a simple app like wireless router configuration.
    My question: is there a simple way to publish QT designer - pyqt application into web? All I want is to have a possibility to make GUI quickly and easly and then access it via www.

    Yes, there are ways to publish a PyQt application as a web app to provide browser-based access to your GUI. One approach is to use a technology called PyQtWebEngine, which allows you to embed a web browser component within a PyQt application and display HTML content.

    Here's a general outline of the steps involved:

    Design your GUI using PyQt and Qt Designer as you would for a desktop application. Integrate PyQtWebEngine into your application. PyQtWebEngine provides a bridge between the PyQt framework and the underlying browser engine (Chromium). It allows you to load and display web content within a PyQt application. Create the web pages or web app interface using HTML, CSS, and JavaScript. You can design the UI using web technologies and incorporate interactivity and functionality as needed. Use PyQtWebEngine to load your HTML content within the PyQt application. You can load the web pages directly from local files or host them on a web server. Set up the necessary server infrastructure to handle communication between the web app and your BeagleBone device. This may involve implementing a server component that communicates with the BeagleBone over a network protocol such as TCP or WebSocket. Access the web app by running your PyQt application and opening the browser window. Users can then interact with the GUI via the web interface, controlling the BeagleBone remotely.

    Keep in mind that deploying a web app using PyQtWebEngine may have certain limitations and dependencies, and it may not be as straightforward as deploying a traditional web application. Additionally, you may need to consider security measures, such as authentication and encryption, to protect the communication between the web app and the BeagleBone device.